import request from '@/utils/request'

// 查询党员信息列表
export function listCpcNumber(query) {
  return request({
    url: '/business/cpcNumber/list',
    method: 'get',
    params: query
  })
}

// 查询党员信息详细
export function getCpcNumber(id) {
  return request({
    url: '/business/cpcNumber/' + id,
    method: 'get'
  })
}

// 新增党员信息
export function addCpcNumber(data) {
  return request({
    url: '/business/cpcNumber',
    method: 'post',
    data: data
  })
}

// 修改党员信息
export function updateCpcNumber(data) {
  return request({
    url: '/business/cpcNumber',
    method: 'put',
    data: data
  })
}

// 删除党员信息
export function delCpcNumber(id) {
  return request({
    url: '/business/cpcNumber/' + id,
    method: 'delete'
  })
}

// 导出党员信息
export function exportCpcNumber(query) {
  return request({
    url: '/business/cpcNumber/export',
    method: 'get',
    params: query
  })
}
// 党组织架构
export function cpcNumberOrange(query) {
  return request({
    url: '/business/organization/listGraph',
    method: 'get',
    params: query
  })
}
